package com.hehui.module.goods.dao;


import com.hehui.module.goods.entity.GoodsCategory;
import com.hehui.module.goods.entity.GoodsCategoryExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 分类mapper
 */
public interface GoodsCategoryMapper {
    long countByExample(GoodsCategoryExample example);

    int deleteByExample(GoodsCategoryExample example);

    int deleteByPrimaryKey(Long gcCategory);

    int insert(GoodsCategory record);

    int insertSelective(GoodsCategory record);

    List<GoodsCategory> selectByExample(GoodsCategoryExample example);

    GoodsCategory selectByPrimaryKey(Long gcCategory);

    int updateByExampleSelective(@Param("record") GoodsCategory record, @Param("example") GoodsCategoryExample example);

    int updateByExample(@Param("record") GoodsCategory record, @Param("example") GoodsCategoryExample example);

    int updateByPrimaryKeySelective(GoodsCategory record);

    int updateByPrimaryKey(GoodsCategory record);
    // 查询最大商品编号
    String goodsCategoryFindMaxNum(@Param("merchantId") Long merchantId);
}